#include <avr/io.h>

#ifndef motor_h
#define motor_h

#define NORTH		0
#define NORTHEAST	1
#define SOUTHEAST	2
#define SOUTH		3
#define SOUTHWEST	4
#define NORTHWEST	5

#define CLOCKWISE 1
#define COUNTERCLOCKWISE 2

// Sets up the timers for the motors PWM, pins to motor controller
void motor_init();

void move(uint8_t dir, uint8_t duty_cycle);
void spin(uint8_t dir, uint8_t duty_cycle);
void stop();

#endif
